import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

//产品类型列表接口
export function TransportTypeList(params) {
    return request({
      url: `${base}/api/transportType/list`,
      method: 'post',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }

  //创建产品类型接口  
  export function TransportTypeCreate(params) {
    return request({
      url: `${base}/api/transportType/create`,
      method: 'post',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }

    //编辑产品类型接口  
    export function TransportTypeEdit(params) {
      return request({
        url: `${base}/api/transportType/update`,
        method: 'put',
        data: params,
        headers: {
          "token": '1ba4686338ee7354395ad13f7d3466c1'
        },
      })
    }

  //产品类型是否启用接口  
  export function TransportTypeIsDisable(params) {
    return request({
      url: `${base}/api/transportType/isDisable/update`,
      method: 'put',
      data: params,
      headers: {
        "token": '1ba4686338ee7354395ad13f7d3466c1'
      },
    })
  }